package com.ece.mediatheque;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.*;
import android.widget.Button;

public class Mediatheque extends Activity {
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_mediatheque);
		
		/*Intent t = new Intent(Une.this, Deux.class);
		startActivity(t);*/
		
		  final Button bouton1 = (Button) findViewById(R.id.button1);
		  bouton1.setOnClickListener(new OnClickListener() {
					
		  @Override
		  public void onClick(View v) {
			Intent intent = new Intent(Mediatheque.this, SupportMediatheque.class);
			startActivity(intent);
			}
		});
		  
		  
		  final Button bouton2 = (Button) findViewById(R.id.button3);
		  bouton2.setOnClickListener(new OnClickListener() {
			
			  @Override
			  public void onClick(View v) { finish();
				}
		});
		  
		  
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.mediatheque, menu);
		return true;
	}

}
